using System;
using System.Collections.Generic;
using System.Text;
using System.Windows.Forms;
using ENT_Entidades;

namespace PQT_Usuarios.UI
{
    public class formFactory
    {
        private const string idFrmLogin = "b17abee2-5fd0-44ea-aa71-eac5bf0b3ba7";

        private static formFactory _frmFactory;

        private static formFactory FrmFactory
        {
            get 
            {
                if (_frmFactory == null) { _frmFactory = new formFactory(); }
                return _frmFactory; 
            }            
        }
        
        
        

        private formFactory()
        { 
        
        }

        public Form newForm(clsOID id)
        {
            Form frm = null;
            if (id.ID.ToString().Equals(idFrmLogin))
            {
                frm = new frmLogin();                
            }

            return frm;
        }

        internal static formFactory getInstance()
        {
            return FrmFactory;            
        }
    }
}
